package com.woniuxy.commons.service;

import com.woniuxy.commons.entity.DisabledAddress;
import com.woniuxy.commons.service.factory.FeignAddressServiceFactory;
import com.woniuxy.commons.util.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "location",fallbackFactory = FeignAddressServiceFactory.class)
public interface FeignAddressService {
    @GetMapping("/address/find/{did}")
    public ResponseResult findAddressByDisabledId(@PathVariable("did") int did);
    @PostMapping("/address/add")
    public ResponseResult addAddress(@RequestBody DisabledAddress address);
    @DeleteMapping("/address/del/{id}")
    public ResponseResult delAddress(@PathVariable("id") int id);
    @PutMapping("/address/update")
    public ResponseResult delAddress(@RequestBody DisabledAddress address);
}
